//
//  IOUtil.m
//  iphone.mobileoa
//
//  Created by 李亚春 on 13-6-5.
//  Copyright (c) 2013年 Epoint. All rights reserved.
//

#import "IOUtil.h"

@implementation IOUtil

-(void)openfile:(NSString *)_path contextView:(UIView *)cView
{
    UIDocumentInteractionController *documentController =
    [UIDocumentInteractionController
     interactionControllerWithURL:[NSURL fileURLWithPath:_path]];
    documentController.delegate = self;
    [documentController retain];
    //documentController.UTI = @"com.microsoft.word.doc";
    [documentController presentOptionsMenuFromRect:CGRectZero inView:cView  animated:YES];
}

@end
